package com.unitech.order.dao.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_order")
public class Order implements Serializable {
    @Id
    @Column(name = "id")
    private String id;

    @Column(name = "create_time")
    private LocalDateTime createTime;

    @Column(name = "customer")
    private String customer;

    @Column(name = "total")
    private BigDecimal total;

    @Column(name = "`state`")
    private Integer state;

    @Column(name = "version")
    private Integer version;

    private static final long serialVersionUID = 1L;
}